home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Dimension;
- import java.awt.LayoutManager;
-
- public class BasicInternalFrameTitlePane$TitlePaneLayout implements LayoutManager {
- // $FF: synthetic field
- private final BasicInternalFrameTitlePane this$0;
-
- public BasicInternalFrameTitlePane$TitlePaneLayout(BasicInternalFrameTitlePane var1) {
- this.this$0 = var1;
- }
-
- public void addLayoutComponent(String var1, Component var2) {
- }
-
- public void layoutContainer(Container var1) {
- int var2 = this.this$0.getWidth();
- int var3 = var2 - 16 - 2;
- this.this$0.menuBar.setBounds(2, 1, 16, 16);
- if (this.this$0.frame.isClosable()) {
- this.this$0.closeButton.setBounds(var3, 2, 16, 14);
- var3 -= 16;
- } else if (this.this$0.closeButton.getParent() != null) {
- this.this$0.closeButton.getParent().remove(this.this$0.closeButton);
- }
-
- if (this.this$0.frame.isMaximizable()) {
- this.this$0.maxButton.setBounds(var3 - 2, 2, 16, 14);
- var3 -= 18;
- } else if (this.this$0.maxButton.getParent() != null) {
- this.this$0.maxButton.getParent().remove(this.this$0.maxButton);
- }
-
- if (this.this$0.frame.isIconifiable()) {
- this.this$0.iconButton.setBounds(var3, 2, 16, 14);
- } else if (this.this$0.iconButton.getParent() != null) {
- this.this$0.iconButton.getParent().remove(this.this$0.iconButton);
- }
-
- }
-
- public Dimension minimumLayoutSize(Container var1) {
- return this.preferredLayoutSize(var1);
- }
-
- public Dimension preferredLayoutSize(Container var1) {
- return new Dimension(100, 18);
- }
-
- public void removeLayoutComponent(Component var1) {
- }
- }
-